#ifndef util_h__
#define util_h__

#include <iostream>
#include <fstream>

#ifdef _DEBUG
#ifndef ASSERT
#define ASSERT(x)\
	if(!(x)){\
	std::cout<<"\nASSERTION FAILED: "<<(#x)<<"\nvalue is "<<(x)<<"\n\tLine No: "<<__LINE__<<"\n\tFile: "<<__FILE__<<"\n\tFunction:"<<__FUNCTION__<<std::endl;\
	}
#endif

#ifndef LOG
#define LOG(x)\
	(std::cout<<"\n"<<(x)<<std::endl)
#endif
#endif

#ifndef LOGVALUE
#define LOGVALUE(x) \
	(std::cout<<"\n"<<(#x)<<"="<<(x)<<std::endl)
#endif

#endif // util_h__

	/*
	std::stringstream _ss;\
	_ss<<"\nASSERTION FAILED: "<<(#x)<<"\n\tLine No: "<<__LINE__<<"\n\tFile: "<<__FILE__<<"\n\tFunction:"<<__FUNCTION__<<std::endl;\
	Onfire::Logger::getInstance()->log(_ss.str().c_str());\*/
